/**
 * Created by wlc on 2018/4/16.
 */

/**
 * 设置搜索框悬停和焦点样式
 */
$("input").focusout(function(){
    $(".box-search-container").css("border","none");
    $(".box-search-container").css("width","200px");
});

$("input").hover(function(){
    $(".box-search-container").css("border","1px solid #45D0E7");
    $(".box-search-container").css("width","400px");
},function(){
    if (!$("input").is(":focus")){
        $(".box-search-container").css("border","none");
        $(".box-search-container").css("width","200px");
    }
});